#include<iostream>

struct travel_time
{
    int hours;
    int minutes;
};

const int mins_per_hour = 60;

travel_time sum_time(travel_time time1, travel_time time2);

int main()
{
    using namespace std;
    travel_time day1 = {5, 45};
    travel_time day2 = {5, 35};
    travel_time sum = sum_time(day1,day2);
    cout << "hours:" << sum.hours << " mintues: " << sum.minutes << endl;

    return 0;
}
travel_time sum_time(travel_time time1, travel_time time2)
{
    travel_time ans;
    ans.hours = time1.hours + time2.hours + (time1.minutes+time2.minutes)/mins_per_hour;
    ans.minutes = (time1.minutes+time2.minutes)%mins_per_hour;

    return ans;
}